package cn.varton.jdk;

import java.util.Observable;

/**
 * 气温
 */
public class Temperature extends Observable{
    private int value;

    public Temperature() {
    }

    public Temperature(int value) {

        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
        this.setChanged();
        this.notifyObservers();
    }
}
